Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes an issue with encoding #154

Merged
merged 3 commits into from
Mar 10, 2017
Merged

Fixes an issue with encoding #154

merged 3 commits into from
Mar 10, 2017

Conversation

kev5873
Copy link
Contributor

@kev5873 kev5873 commented Mar 10, 2017

When encoding is set to undefined, (see: https://github.com/request/request#requestoptions-callback) the fetched file is encoded in utf-8 by default. Its possible that it was re-encoding things twice causing issues with scripts/check-build.test.js

Setting encoding to null will fetch the data as binary, and body will be a buffer, which allows iconv to properly decode.

@kev5873 kev5873 requested a review from adampash March 10, 2017 21:43
Copy link
Contributor

@adampash adampash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kev5873 kev5873 merged commit f2e3f05 into master Mar 10, 2017
@kev5873 kev5873 deleted the fix-encoding-issue branch March 10, 2017 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants